//提供调用category相关的api
import request from './request'
//查询所有的分类
export const findAllCategory = ()=>request.get('/category/findAll')
//通过id删除分类
export const deleteCategory = (id)=>request.get('/category/delete?id='+id)
//添加分类
export const addCategory = (data)=>request.post('/category/add',data)
//修改分类
export const updateCategory =(data)=>request.post('/category/update',data)